<template>
  <div>
    <el-row>
      <div>
        <p>{{userInfo.businessName}}</p>
        <p>联系人：{{userInfo.staffName}}</p>
        <p>联系电话：{{userInfo.staffTel}}</p>
        <p>邮箱：{{userInfo.email}}</p>
        <p>地址：{{userInfo.businessAddr}}</p>
      </div>
    </el-row>
  </div>
</template>
<script>
import api from '../api';

export default {
  data() {
    return {
      userInfo: {}
    };
  },
  created() {
    this.init();
  },
  methods: {
    init() {
      this.getBusinessInfo();
    },
    getBusinessInfo() {
      api.getBusinessInfo().then((data) => {
        this.userInfo = data;
      });
    }
  }
};
</script>
